package io.github.harmonly.service;

import io.github.harmonly.entity.activity.Activity;
import io.github.harmonly.entity.activity.ActivityComment;

import java.util.List;

public interface ActivityService {

    List<Activity> getActivitiesByKeyWord(String keyword);

    List<Activity> getActivitiesByAid(int aid);

    List<Activity> getActivities();

    Activity getActivity(int cid);

    boolean addActivity(Activity activity);

    boolean deleteActivity(int cid);

    boolean editActivity(Activity activity);

    List<ActivityComment> getComments();

    List<ActivityComment> getCommentsByCid(int cid);

    ActivityComment getComment(int ccid);

    boolean addComment(ActivityComment comment);

    boolean deleteComment(int ccid);

    boolean editComment(ActivityComment comment);
}
